﻿<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property" default-lazy="true" namespace="Cms.Domain" assembly="Cms.Domain">
  <class name="UserGroupField" table="cmsUserGroupField">
    <cache usage="read-write" />
    <id name="Id" type="System.Int32" unsaved-value="0">
      <column name="Id" />
      <generator class="identity" />
    </id>
    <property name="Name" type="System.String">
      <column name="Name" not-null="true" />
    </property>
    <map name="LabelTranslations" table="cmsUserGroupFieldLabelTranslation" mutable="true">
      <cache usage="read-write" />
      <key>
        <column name="UserGroupFieldId" />
      </key>
      <index type="System.Int32">
        <column name="LocaleId" />
      </index>
      <composite-element class="UserGroupFieldLabelTranslation">
        <property name="Text" type="System.String">
          <column name="Text" not-null="true" />
        </property>
      </composite-element>
    </map>
    <many-to-one name="FieldType" column="FieldTypeId" not-null="true" />
    <many-to-one name="UserGroup" column="UserGroupId" not-null="true" />
    <property name="SortIndex" type="System.Int32">
      <column name="SortIndex" not-null="true" />
    </property>
  </class>
</hibernate-mapping>